import Vue from 'vue'
import Router from 'vue-router'
import Login from "../components/Login";
import Manager from "../components/Manager";
import AdminList from "../components/system/AdminList";
import addAdmin from "../components/system/addAdmin";
import RoleList from "../components/system/RoleList";
import MenuTree from "../components/system/MenuTree";
import AttrGroupList from "../components/product/AttrGroupList";
import AddGroup from "../components/product/AddGroup";
import AddAttr from "../components/product/AddAttr";
import SpuList from "../components/product/SpuList";
import BrandList from "../components/product/BrandList";
import AddBrand from "../components/product/AddBrand";
import OssBrand from "../components/product/OssBrand";


Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', name: 'Login', component: Login},
    {path:"/manager", name:"manager", component:Manager,
      children:[
        {path:"/admin/selectAdmin", name:"adminList", component:AdminList},
        {path:"/admin/addAdmin", name:"addAdmin", component:addAdmin},
        {path:"/role/selectAll", name:"roleList", component:RoleList},
        {path:"/menuTree", name:"menTree", component:MenuTree},
        {path:"/product/attrGroup",name:"AttrGroupList",component:AttrGroupList},
        {path:"/product/addGroup",name:"AddGroupList",component:AddGroup},
        {path:"/product/spu",name:"spuList",component:SpuList},
        {path:"/product/AddAttr",name:"addAttr",component:AddAttr},
        {path:"/product/brand",name:"brand",component:BrandList},
        {path:"/product/addBrand",name:"addBrand",component:AddBrand},
        {path:"/product/OssBrand",name:"OssBrand",component:OssBrand},
      ]
    }
    ]
})
